package cn.iocoder.yudao.module.design.controller.admin.userflowrel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
* 用户和流程角色关联 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class UserFlowRelBaseVO {

    @Schema(description = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "住宅ID", required = true)
    @NotNull(message = "住宅ID不能为空")
    private Long houseId;

    @Schema(description = "流程ID", required = true)
    @NotNull(message = "流程ID不能为空")
    private Long flowId;

    @Schema(description = "角色id", required = true)
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    @Schema(description = "状态（0正常1失效2-待确认）", required = true)
    @NotNull(message = "状态（0正常1失效2-待确认）不能为空")
    private String status;

}
